package com.chen.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.chen.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 商品图片
 * </p>
 *
 * @author 陈永鹏
 * @since 2019-03-26
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("zs_goods_images")
public class GoodsImages extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 商品图片主键
     */
    @TableId(value = "gi_id", type = IdType.AUTO)
    private Integer gi_id;

    /**
     * 图片存储位置
     */
    private String img_url;

    /**
     * 商品ID
     */
    private Integer goods_id;

    /**
     * 类型，1商品 2景点
     */
    private Boolean goods_type;

    /**
     * 图片的展示顺序
     */
    private Integer sort;


}
